Skip to content

ci: dogfood semvertag against this repo#5

Merged
lesnik512 merged 1 commit into
mainfrom
chore/dogfood-semvertag
Jun 8, 2026
Merged

ci: dogfood semvertag against this repo#5
lesnik512 merged 1 commit into
mainfrom
chore/dogfood-semvertag

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

Wire semvertag 0.3.0 into this repo's own CI to dogfood the GitHub provider against api.github.com end-to-end. Tags main on every push when a feat/.../bugfix/.../hotfix/... merge warrants a bump; otherwise exits 0 silently.

  • New workflow at .github/workflows/semvertag.yml based on the recipe in docs/providers/github.md
  • Overrides SEMVERTAG_BRANCH_PREFIX__MINOR=["feat/"] to match this repo's actual branch convention (the default feature/ wouldn't match any of our merges)
  • Uses the workflow-scoped GITHUB_TOKEN (workflow declares permissions: contents: write)
  • concurrency: semvertag serializes back-to-back pushes so they don't race the create_tag API
  • Does NOT trigger publish.yml — that still fires on GitHub release creation only

Test plan

  • Merge this PR — its commit is chore/... which doesn't match any bump prefix, so the workflow should run, decide "no bump", and exit 0 without creating a tag
  • Next feat/... merge to main should trigger an auto-tag (likely 0.4.0)
  • Verify the GitHub Action's job output shows "Detected strategy: branch-prefix" + a clean exit
  • If anything fails, the error message tells us something real about how the GitHub provider behaves outside the mock harness

🤖 Generated with Claude Code

Auto-tags on push to main when the latest commit is a feat/ merge
(minor) or bugfix/hotfix/ merge (patch). The default branch_prefix
mapping is `feature/`; this repo uses `feat/` so the workflow
overrides SEMVERTAG_BRANCH_PREFIX__MINOR.

Tag creation does NOT trigger publish.yml (which fires on GitHub
release creation, not tag push) — to publish to PyPI, create a
release pointed at the auto-tagged commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit a740697 into main Jun 8, 2026
5 checks passed
@lesnik512 lesnik512 deleted the chore/dogfood-semvertag branch June 8, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant